<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>JsChartViewer.toCssW</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="JsChartViewer.htm">JsChartViewer</a>.<wbr>toCssW</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
toCssW(w)
</div>
<p class="heading2">Description</p>
<div class="content">
Convert horizontal width from chart pixel unit to CSS pixel unit.<br><br>
The CSS pixel unit is the pixel unit in HTML. If a chart image is shown in its natural size (the pixel size that the chart is created), the chart pixel unit should be the same as the CSS pixel unit. However, some web pages are designed such that the charts may not be displayed at their natural size. For example, on mobile web pages, the charts may be resized to fit the mobile device screens. If programmable track cursor is used, it is often necessary to draw HTML lines, text and dots on the chart. The toCssW method can be used to convert from chart pixel unit to CSS pixel unit, so that the HTML contents can be properly sized relative to the chart.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>w</td><td>(Mandatory)</td><td>The width in chart pixel unit to be converted to CSS pixel unit.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
The width in CSS pixel unit.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
